//
//  AddCardTableViewCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/21.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "AddCardTableViewCell.h"
#import "MyBankCardModel.h"

@implementation AddCardTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setDataWithModel:(MyBankCardModel *)model
{
    _BankName.text = model.BankName;
    _BankType.text = model.BankType;
    _CardNo.text = model.CardNo;

    NSString *url = [[model.IconUrl substringFromIndex:1] stringByReplacingOccurrencesOfString:@"\\" withString:@"/"];//截取掉下标7之后的字符串
    [_IconUrl sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",BaseURL,url]]];


}


- (void)drawRect:(CGRect)rect{
    _backImage.layer.cornerRadius = 22.5;
    _backImage.layer.masksToBounds = YES;
    _IconUrl.layer.cornerRadius = 20;
    _IconUrl.layer.masksToBounds = YES;
}

@end
